<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

<div class="property">
    <div class="box">
        <div class="left_box f_l">
            <div class="title">
                <o><!--线条--></o>
                <span>
                	<p>特色物业</p>
                    <em>Featured Properties</em>
                </span>
                <a href="/properties.html"><i class="ico"></i></a>
            </div>
            <div class="swiperbox">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <?php if ($hot) : ?>
                            <?php foreach ($hot as $key => $val) : ?>
                                <div class="swiper-slide">
                                    <a href="<?php echo "/properties_show/" . $val['id'] . ".html"; ?>"><img src="<?php echo $val['img']; ?>" alt=""></a>
                                    <div class="item-footer">
                                        <p class="name">
                                            <?php echo $val['title']; ?>
                                        </p>
                                        <p class="item-des">
                                            <?php echo $val['describe']; ?>
                                        </p>
                                    </div>
                                </div>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </div>
                    <div class="swiper-pagination"></div>

                    <div class="swiper-button-prev"></div>
                    <!--左箭头。如果放置在swiper-container外面，需要自定义样式。-->
                    <div class="swiper-button-next"></div>
                    <!--右箭头。如果放置在swiper-container外面，需要自定义样式。-->
                </div>
            </div>
        </div>
        <div class="left_box f_r">
            <div class="title">
                <span class="tit">最近交易</span>
            </div>
            <div class="list">
                <ul>
                    <?php if ($product) : ?>
                        <?php foreach ($product as $key => $val) : ?>
                            <li>
                                <a href="<?php echo "/properties_show/" . $val['id'] . ".html"; ?>">
                                <span>
                            	<em><?php echo $val['price'];?>SF</em><?php echo $val['title']; ?>
                                </span>
                                    <img src="<?php echo $val['img']; ?>">
                                </a>
                            </li>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="about_main">
    <div class="box">
        <div class="pic f_l"> <img src="<?php echo image_url('company.png'); ?>"></div>
        <div class="con f_r">
            <h1>关于<br><b>First Western</b></h1>
            <h2>
<!--                <p>First Western Properties，Inc.是一家位于芝加哥的提供全方位服务的商业房地产公司。 First Western专注于零售商业房地产，包括：租户和房东代表，投资销售，收购，空置土地，多件组合，新开发和重建。 我们多年的经验，再加上卓越的精力和职业道德，使我们能够最大限度地利用每个机会。</p>-->
            <p> <?php echo $page; ?></p>
            </h2>
            <div class="gz">
                <p>关注我们</p>
                <a href="#" target="_blank"><i class="ico ico_wx"></i></a>
                <a href="#" target="_blank"><i class="ico ico_wb"></i></a>
                <span>我们为真正为每笔交易增加价值而感到自豪。</span>
            </div>
        </div>
    </div>
</div>
<div class="news_box">
    <ul>
        <?php if ($news) : ?>
        <?php foreach ( $news as $key=>$val) { ?>
            <?php if( $key == 0){ ?>
                <li>
                    <div class="title">
                        <span>
                            <p>新闻</p>
                            <em>News</em>
                        </span>
                        <a href="/news_list.html"><i class="ico"></i></a>
                    </div>
                    <div class="hot_con">
                        <a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>" class="tit"><?php echo $val['title']; ?></a>
                        <p class="time"><?php echo $val['create_time']; ?></p>
                        <span class="show"><?php echo $val['describe']; ?></span>
                        <em class="more"><a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>" class="ico"></a></em>
                    </div>
                </li>
            <?php }else{ ?>
                <li>
                    <div class="con">
                        <a href="#" class="tit"><?php echo $val['title']; ?></a>
                        <p class="time"><?php echo $val['create_time']; ?></p>
                        <span class="show"><?php echo $val['describe']; ?></span>
                        <em class="more"><a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>" class="ico"></a></em>
                    </div>
                    <img src="<?php echo $val['img']; ?>">
                </li>
            <?php  } ?>
        <?php } ?>
        <?php endif; ?>
    </ul>
</div>
<?php $this->load->view('common/footer'); ?>
